package com.class06.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody // 指定响应字符串
@RequestMapping("/hello") // 指定请求路径
public class HelloController {





    @RequestMapping("/student")
    public String student(){
        int a = 1 / 0;
        return "student";
    }



}
